import Vue from 'vue'
import VueRouter from 'vue-router'
import routes from './router';
// import { setTitle } from '@/lib/util';
Vue.use(VueRouter)
const router = new VueRouter({
  // mode: 'history',
  base: process.env.BASE_URL,
  routes
})
//to.meta && setTitle(to.meta.title)
//router.beforeEach((to, from, next) => { })
// router.beforeResolve((to, from, next) => {  })
// router.afterEach((to, from) => {  }),
export default router
